.PHONY:all
all:otherExe mycommand6

mycommand6:mycommand6.c
	gcc -o $@ $^ -std=gnu99
otherExe:otherExe.cpp
	g++ -o $@ $^ -std=c++11

.PHONY:clean6
clean6:
	rm -f mycommand6 otherExe

mycommand3:mycommand3.c
	gcc -o $@ $^ -std=c99

.PHONY:clean3
clean3:
	rm -f mycommand3

mycommand2:mycommand2.c
	gcc -o $@ $^ -std=c99

.PHONY:clean2
clean2:
	rm -f mycommand2

mycommand1:mycommand1.c
	gcc -o $@ $^ -std=c99

.PHONY:clean1
clean1:
	rm -f mycommand1

mycommand:mycommand.c
	gcc -o $@ $^ -std=c99

.PHONY:clean
clean:
	rm -f mycommand
